package ch15;

/**
 * Created by hasee on 2017/10/22.
 */
public class Customer
{
    private int arrivalTime, departureTime;


    public Customer (int arrives)
    {
        arrivalTime = arrives;
        departureTime = 0;
    }


    public int getArrivalTime()
    {
        return arrivalTime;
    }


    public void setDepartureTime (int departs)
    {
        departureTime = departs;
    }


    public int getDepartureTime()
    {
        return departureTime;
    }


    public int totalTime()
    {
        return departureTime - arrivalTime;
    }
}
